﻿using System;
using System.Collections.Generic;
using System.Text;
using DotNet.Data;
using DotNet.Model;
namespace DotNet.Business
{
	public class ClassAttributeBll
	{
		ClassAttributeDal cDal=new ClassAttributeDal();

		#region 是否存在该记录
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int ClassAttributeID)
		{
			return cDal.Exists(ClassAttributeID);
		}
		#endregion

		#region 获得数据列表
		/// <summary>
		/// 获得数据列表
		/// </summary>
		public IList<ClassAttribute> GetModel()
		{
			return cDal.GetModel();
		}
		#endregion

		#region 根据标识列获得数据实体
		/// <summary>
		/// 根据标识列获得数据实体
		/// </summary>
		/// <param name="ClassAttributeID">标识列</param>
		/// <returns></returns>
		public ClassAttribute GetModel(int ClassAttributeID)
		{
			return cDal.GetModel(ClassAttributeID);
		}
		#endregion

        #region 根据类别id获得实体---郑同飞
        /// <summary>
        /// 根据类别id获得实体---郑同飞
        /// </summary>
        /// <param name="pClassID"></param>
        /// <returns></returns>
        public ClassAttribute GetModelByClassID(int pClassID)
        {
            return cDal.GetModelByClassID(pClassID);
        }
        #endregion

        #region 修改信息
        /// <summary>
		/// 修改信息
		/// </summary>
		/// <param name="ClassAttribute">实体</param>
		/// <returns></returns>
		public bool Update(ClassAttribute classattribute)
		{
			 return cDal.Update(classattribute);
		}
		#endregion

		#region 删除信息
		/// <summary>
		/// 删除信息
		/// </summary>
		/// <param name="ClassAttributeID">标识列</param>
		/// <returns></returns>
		public bool Delete(int ClassAttributeID)
		{
			 return cDal.Delete(ClassAttributeID);
		}
		#endregion

		#region 添加信息
		/// <summary>
		/// 添加信息
		/// </summary>
		/// <param name="ClassAttribute">实体</param>
		/// <returns></returns>
		public bool Insert(ClassAttribute classattribute)
		{
			 return cDal.Insert(classattribute);
		}
		#endregion
	}
}
